<?php
$style['s']['class'] = 'hideme';
$style['s']['msg'] = '';
$style['e']['class'] = 'hideme';
$style['e']['msg'] = '';
$style['n']['class'] = 'hideme';
$style['n']['msg'] = '';
   
if(isset($valid_success) && !empty($valid_success))
{
	$style['s']['class'] = 'showme';
	$style['s']['msg'] = $valid_success;
}
if(isset($valid_errors) && !empty($valid_errors))
{
	$style['e']['class'] = 'showme';
	$style['e']['msg'] = $valid_errors;
}
if(isset($valid_notice) && !empty($valid_notice))
{
	$style['n']['class'] = 'showme';
	$style['n']['msg'] = $valid_notice;
}
?>


<div id="admin_msg">

	<div class="success <?php echo $style['s']['class']; ?>">
	<span>Congratulations!</span>
	<?php echo $style['s']['msg']; ?>
	</div>
	
	<div class="error <?php echo $style['e']['class'] ; ?>">
	<span>Error(s)!</span>
	<?php echo $style['e']['msg'] ; ?>
	</div>
	
	<div class="notice <?php echo $style['n']['class'] ; ?>">
	<span>Warning/Notice!</span>
	<?php echo $style['n']['msg'] ; ?>
	</div>

</div>